import axios from "axios";

import service from '../utils/request'
export function shop_list(payload = {}){
    return service.get('/api/shop/list',{params:payload});
}
export function tuan_list(payload = {}){
    return service.get('/api/tuan/list',{params:payload});
}
export function register(payload = {}){
    return service.post('/api/user/register',payload);
}
export function login(payload = {}){
    return service.post('/api/user/login',payload);
}
export function shop(payload = {}){
    return service.get('/api/shop/shopinfo',{params:payload});
}
export function search(payload = {}){
    return service.get('/api/shop/search',{params:payload});
}
export function banner(payload = {}){
    return service.get('/api/banner/list',{params:payload});
}
export function savelist(payload = {}){
    return service.get('/api/shop/favlist',{params:payload});
}
export function save(payload = {}){
    return service.post('/api/shop/fav',payload);
}
export function unsave(payload = {}){
    return service.post('/api/shop/unfav',payload);
}
export function shopcartlist(payload = {}){
    return service.get('/api/shopcart/list',{params:payload});
}
export function shopcartclear(payload = {}){
    return service.post('/api/shopcart/clear',payload);
}
export function shopcartadd(payload = {}){
    return service.post('/api/shopcart/add',payload);
}
export function shopcartsub(payload = {}){
    return service.post('/api/shopcart/sub',payload);
}